﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using VAdvantage.Utility;
using System.Data;

namespace VAdvantage.Model
{
    public class MAccessProfile : X_CM_AccessProfile
    {
        /// <summary>
        /// Access to Container
        /// </summary>
        /// <param name="ctx">context</param>
        /// <param name="CM_Container_ID">id</param>
        /// <param name="AD_User_ID">id</param>
        /// <returns>ture if access container</returns>
        public static bool IsAccessContainer(Ctx ctx, int CM_Container_ID,
            int AD_User_ID)
        {
            //	NIT
            return true;
        }	//	isAccessContainer

        /// <summary>
        /// Access to Container
        /// </summary>
        /// <param name="ctx">context</param>
        /// <param name="CM_Container_ID">id</param>
        /// <param name="AD_Role_ID"> 0 or role check</param>
        /// <param name="C_BPGroup_ID"> 0 or bpartner to check</param>
        /// <returns>true if access to container</returns>
        public static bool IsAccessContainer(Ctx ctx, int CM_Container_ID,
            int AD_Role_ID, int C_BPGroup_ID)
        {
            //	NIT
            return true;
        }	//	isAccessContainer

        /// <summary>
        ///	Standard Constructor
        /// </summary>
        /// <param name="ctx">context</param>
        /// <param name="CM_AccessProfile_ID">id</param>
        /// <param name="trxName">transation</param>
        public MAccessProfile(Ctx ctx, int CM_AccessProfile_ID,
            String trxName)
            : base(ctx, CM_AccessProfile_ID, trxName)
        {

        }

        /// <summary>
        /// Load Constructor
        /// </summary>
        /// <param name="ctx">context</param>
        /// <param name="rs">datarow</param>
        /// <param name="trxName">trx</param>
        public MAccessProfile(Ctx ctx, DataRow dr, String trxName)
            : base(ctx, dr, trxName)
        {

        }	//	MAccessProfile
        public MAccessProfile(Ctx ctx, IDataReader idr, String trxName)
            : base(ctx, idr, trxName)
        { }
    }
}
